package dongshi.daddy.proxy.v2.jdkproxy;

import java.lang.reflect.Proxy;

public class ServiceProxyFactory {
    public static Object makeProxy(Object target) {
        return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), new ServiceInvocationHandler(target));
    }
}
